<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MotaSiteStandard.Master"
    Inherits="System.Web.Mvc.ViewPage<MotaWeb.Models.Biography>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Edit</h2>
    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       {%>
    <fieldset>
        <legend>Fields</legend>
        <p>
            <label for="BiographyText">
                Biography Text:</label>
            <%= Html.TextBox("BiographyText", Model.BiographyText) %>
            <%= Html.ValidationMessage("BiographyText", "*") %>
        </p>
        <p>
            <label for="UserName">
                User Name:</label>
            <%= Model.UserName %>
        </p>
        <p>
            <label for="IsApproved">
                Approved For Site:</label>
            <%= Html.CheckBox("IsApproved", Model.IsApproved) %>
        </p>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%= Html.ActionLink("View Active List", "SixWordBiographies", "Biography") %>.
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
